﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using XLua;
using UnityEngine;


public static class SystemUtils
{
    [LuaCallCSharp]
    public static void CopyToCliBoard(string text)
    {
        TextEditor textEditor = new TextEditor();
        textEditor.text = text;
        textEditor.SelectAll();
        textEditor.Copy();
    }

    [LuaCallCSharp]
    public static string CliBoardToPaste()
    {
        TextEditor textEditor = new TextEditor();
        textEditor.Paste();
        return textEditor.text;
    }
}